import request from '@/utils/request'

// 查询期货策略参数列表
export function listFutureStrategyParam(query) {
  return request({
    url: '/kylin/futureStrategyParam/list',
    method: 'get',
    params: query
  })
}

// 查询期货策略参数详细
export function getFutureStrategyParam(paramId) {
  return request({
    url: '/kylin/futureStrategyParam/' + paramId,
    method: 'get'
  })
}

// 新增期货策略参数
export function addFutureStrategyParam(data) {
  return request({
    url: '/kylin/futureStrategyParam',
    method: 'post',
    data: data
  })
}

// 修改期货策略参数
export function updateFutureStrategyParam(paramId, data) {
  return request({
    url: '/kylin/futureStrategyParam/' + paramId,
    method: 'put',
    data: data
  })
}

// 删除期货策略参数
export function delFutureStrategyParam(ids) {
  return request({
    url: '/kylin/futureStrategyParam',
    method: 'delete',
    data: {
      ids: ids
    }
  })
}

// 清空全部策略参数
export function truncateFutureStrategyParam() {
  return request({
    url: '/kylin/futureStrategyParam/truncate',
    method: 'post'
  })
}